<template>
	<view class="page-body">
		<view class="page-body-wrapper">
			<cover-image :src="src" class="camera"></cover-image>
			<cover-view class="cover-view">
				<cover-view class="cover-round"></cover-view>
			</cover-view>
		</view>
		<view class="uni-padding-wrap uni-common-mt">
			<view class="button-sp-area">
				<button type="primary" @click="takeCert">开始认证</button>
			</view>
		</view>
		<view class="uni-padding-wrap uni-common-mt">
			<view class="button-sp-area">
				<button type="primary" @click="goBack">重新拍摄</button>
			</view>
		</view>
	</view>
</template>
<style>
	.page-body-wrapper {
		margin-top: 100rpx;
		position: relative;
	}

	.camera {
		width: 100%;
		height: 750rpx;
		background-color: #fff;
	}

	.cover-view {
		width: 100%;
		height: 750rpx;
		text-align: center;
		background-color: transparent;
		display: flex;
		justify-content: center;
		align-items: center;
		position: absolute;
		top: 0;
		left: 0;
	}

	.cover-round {
		position: absolute;
		width: 600rpx;
		height: 600rpx;
		border-radius: 50%;
		border: 500rpx solid #ffffff;
	}
</style>
<script>
	export default {
		data() {
			return {
				src: ""
			}
		},
		onLoad(option) {
			this.src = option.img;
		},
		methods: {
			takeCert() {},
			goBack(){
				uni.navigateBack({
					
				})
			}
		}
	}
</script>
